package com.taing.web;

import com.taing.autosql.sqlconfig.IAutoSqlDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @Author tianyi
 * @Description // todo
 * @Date 2023 - 02 - 13
 **/
@RestController
@RequestMapping("/autoSqlService")
public class AutoServiceController {
    @Autowired
    private IAutoSqlDao autosqlDao;

    @RequestMapping(value = "/query", method = RequestMethod.GET)
    public List<Map<String, Object>> query(Map<String, Object> param) {
        param.put("methodName", "findAllUserInfo");
        return autosqlDao.queryServiceList(param);
    }
}
